Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add internal/s3/reader/option test #630

Merged
merged 3 commits into from
Aug 24, 2020

Conversation

vankichi
Copy link
Contributor

@vankichi vankichi commented Aug 19, 2020

Signed-off-by: vankichi kyukawa315@gmail.com

Description:

  • add test for internal/db/storage/blob/s3/reader/option.
  • add comment for each exported var/function for internal/db/storage/blob/s3/reader/option.
  • refactor set option logic at WithBackoffOpts

Related Issue:

How Has This Been Tested?:

Environment:

  • Go Version: 1.14.4
  • Docker Version: 19.03.8
  • Kubernetes Version: 1.18.2
  • NGT Version: 1.12.0

Types of changes:

  • Bug fix [type/bug]
  • New feature [type/feature]
  • Add tests [type/test]
  • Security related changes [type/security]
  • Add documents [type/documentation]
  • Refactoring [type/refactoring]
  • Update dependencies [type/dependency]
  • Update benchmarks and performances [type/bench]
  • Update CI [type/ci]

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

Checklist:

  • I have read the CONTRIBUTING document.
  • I have checked open Pull Requests for the similar feature or fixes?
  • I have added tests and benchmarks to cover my changes.
  • I have ensured all new and existing tests passed.
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly.

@pull-assistant
Copy link

pull-assistant bot commented Aug 19, 2020

Score: 0.96

Best reviewed: commit by commit


Optimal code review plan

     ✅ ♻️ add internal/db/storage/s3/reader/option ...

     ✅ fix

     ✅ fix

Powered by Pull Assistant. Last update 008a1d3 ... 4b87bed. Read the comment docs.

@vdaas-ci
Copy link
Collaborator

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 💌 /changelog - add changelog comment
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • /rebase - rebase master

@vankichi vankichi changed the title add internal/db/storage/s3/reader/option… add internal/s3/reader/option test Aug 19, 2020
@codecov
Copy link

codecov bot commented Aug 19, 2020

Codecov Report

Merging #630 into master will increase coverage by 2.52%.
The diff coverage is 30.94%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #630      +/-   ##
==========================================
+ Coverage   12.19%   14.72%   +2.52%     
==========================================
  Files         409      411       +2     
  Lines       21340    21576     +236     
==========================================
+ Hits         2602     3176     +574     
+ Misses      18454    18126     -328     
+ Partials      284      274      -10     
Impacted Files Coverage Δ
internal/compress/gzip_option.go 84.61% <ø> (+15.38%) ⬆️
internal/compress/lz4_option.go 84.61% <ø> (+15.38%) ⬆️
internal/compress/zstd_option.go 81.81% <ø> (ø)
internal/config/mysql.go 43.47% <0.00%> (-56.53%) ⬇️
internal/config/redis.go 0.00% <0.00%> (ø)
internal/db/rdb/mysql/mysql.go 0.00% <0.00%> (ø)
internal/errors/net.go 0.00% <ø> (ø)
internal/info/info.go 29.16% <ø> (ø)
internal/observability/trace/trace.go 0.00% <ø> (ø)
internal/worker/queue_option.go 100.00% <ø> (+84.21%) ⬆️
... and 41 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0f36d32...4b87bed. Read the comment docs.

internal/db/storage/blob/s3/reader/option_test.go Outdated Show resolved Hide resolved
internal/db/storage/blob/s3/reader/option_test.go Outdated Show resolved Hide resolved
internal/db/storage/blob/s3/reader/option_test.go Outdated Show resolved Hide resolved
internal/db/storage/blob/s3/reader/option_test.go Outdated Show resolved Hide resolved
internal/db/storage/blob/s3/reader/option_test.go Outdated Show resolved Hide resolved
internal/db/storage/blob/s3/reader/option_test.go Outdated Show resolved Hide resolved
internal/db/storage/blob/s3/reader/option_test.go Outdated Show resolved Hide resolved
internal/db/storage/blob/s3/reader/option_test.go Outdated Show resolved Hide resolved
@vankichi vankichi requested a review from hlts2 August 20, 2020 16:11
kevindiu
kevindiu previously approved these changes Aug 24, 2020
Copy link
Contributor

@kevindiu kevindiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

hlts2
hlts2 previously approved these changes Aug 24, 2020
Copy link
Collaborator

@hlts2 hlts2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vankichi
Copy link
Contributor Author

/rebase
/format
/approve

@vdaas-ci
Copy link
Collaborator

[REBASE] Rebase triggered by vankichi for branch: test/internal/db/storage/blob/s3/reader/option

@vdaas-ci vdaas-ci dismissed stale reviews from hlts2 and kevindiu via fc8be3c August 24, 2020 03:21
@vdaas-ci vdaas-ci force-pushed the test/internal/db/storage/blob/s3/reader/option branch from a18b6fb to fc8be3c Compare August 24, 2020 03:21
@vdaas-ci
Copy link
Collaborator

[FORMAT] Updating license headers and formatting go codes triggered by vankichi.

vdaas-ci
vdaas-ci previously approved these changes Aug 24, 2020
Copy link
Collaborator

@vdaas-ci vdaas-ci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[APPROVED] This PR is approved by vankichi.

@vankichi
Copy link
Contributor Author

/rebase
/format
/approve

@vdaas-ci
Copy link
Collaborator

[REBASE] Rebase triggered by vankichi for branch: test/internal/db/storage/blob/s3/reader/option

Signed-off-by: vankichi <kyukawa315@gmail.com>
Signed-off-by: vankichi <kyukawa315@gmail.com>
Signed-off-by: vankichi <kyukawa315@gmail.com>
@vdaas-ci vdaas-ci force-pushed the test/internal/db/storage/blob/s3/reader/option branch from fc8be3c to 4b87bed Compare August 24, 2020 07:32
@vdaas-ci
Copy link
Collaborator

[FORMAT] Updating license headers and formatting go codes triggered by vankichi.

Copy link
Collaborator

@vdaas-ci vdaas-ci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[APPROVED] This PR is approved by vankichi.

@vankichi vankichi merged commit 764a4bb into master Aug 24, 2020
@vankichi vankichi deleted the test/internal/db/storage/blob/s3/reader/option branch August 24, 2020 08:14
@vdaas-ci vdaas-ci mentioned this pull request Sep 2, 2020
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants